"use strict";
exports.__esModule = true;
// 赋值枚举
var Direction;
(function (Direction) {
    Direction["Up"] = "UP";
    Direction["Down"] = "DOWN";
    Direction["Left"] = "LEFT";
    Direction["Right"] = "RIGHT";
})(Direction || (Direction = {}));
console.log(Direction.Up); // "UP"
// 不赋值 默认从 0 开始
var MyName;
(function (MyName) {
    MyName[MyName["Tom"] = 0] = "Tom";
    MyName[MyName["Cat"] = 1] = "Cat";
    MyName[MyName["Steven"] = 2] = "Steven";
})(MyName || (MyName = {}));
console.log(MyName.Cat); //1
console.log(MyName[0]); //Tom
